import {axios} from '@/utils/request'
import api from '../manage'
/**
 * 试卷管理
 * */
// 试卷列表查询
export function queryExamList (examParam) {
  return axios({
    url: '/exam/queryExamList',
    method: 'post',
    data: examParam
  })
}

// 试卷列表查询试卷详情
export function selectExamDetailList (examParam) {
  return axios({
    url: '/exam/selectExamDetailList',
    method: 'post',
    data: examParam
  })
}

// 试卷列表新增
export function insertExamData (model) {
  return axios({
    url: '/exam/insertExamData',
    method: 'post',
    data: model
  })
}

// 试卷列表新增  /exam/selectQuestionLibList
export function createRefundRecord (model) {
  return axios({
    url: '/exam/insertExamData',
    method: 'post',
    data: model
  })
}

// 试卷列表修改  /exam/selectQuestionLibList
export function updateRefundRecord (model) {
  return axios({
    url: '/exam/insertExamData',
    method: 'post',
    data: model
  })
}



// 试卷列表新增  查询题库列表
export function selectQuestionLibList () {
  return axios({
    url: '/exam/selectQuestionLibList',
    method: 'post',
    data: {"_search": false}
  })
}


// 试卷列表删除 delete
export function couresDelete (id) {
  return axios({
    url: '/course/delete/' + id,
    method: 'post'
  })
}

// 试卷列表删除 delete
export function examDelete (id) {
  return axios({
    url: '/exam/delete/' + id,
    method: 'post'
  })
}
